package written_examination;
import java.util.*;

public class Solution_1126_2 {
    public static int StrToInt(String str) {
        char[] ch = str.toCharArray();
        int result = 0;
        if (str.length() == 0) {
            return 0;
        } else if (str.length() == 1 && (ch[0] == '+' || ch[0] == '-')) {
            return 0;
        } else {
            int i = 0;
            boolean flag = true;
            if (ch[0] == '+') {
                i++;
            } else if (ch[0] == '-') {
                i++;
                flag = false;
            }
            for (int j = i; j < ch.length; j++) {
                if (ch[j] >= '0' && ch[j] <= '9') {
                    result = result * 10 + (ch[j] - '0');
                }else{
                    return 0;
                }
            }
            if(flag == false){
                result = result * (-1);
            }
        }
        return result;
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        long n = StrToInt(s);
        System.out.println(n);
    }
}
